package com.xiu.travel.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;

/**
 * @author 2023
 */

@AllArgsConstructor
public enum SexEnum implements IEnum<Integer> {
    /**
     * 未知性别
     */
    UNKNOWN_SEX(0,"未知性别"),
    /**
     * 男
     */
    MEN(1,"男"),

    /**
     * 女
     */
    WOMEN(2,"女");

    @EnumValue
    private final Integer code;
    @JsonValue
    private final String status;

    public String getStatus() {
        return status;
    }

    @Override
    public Integer getValue() {
        return code;
    }
}
